CC := gcc
CFLAGS := -c -Imcu_src

SRC_FILES := mcu_src/*.c
OBJ_FILES := $(patsubst %.c,%.o,$(wildcard $(SRC_FILES)))

libmcuRuntime.a: $(OBJ_FILES)
	ar rcs $@ $^

%.o: %.c
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -f libmcuRuntime.a $(OBJ_FILES) mcuRuntime
